package com.ws.genercity.demo09;

import java.lang.reflect.Method;

/**
 * @author 13353
 */
public class Test10 {
    public static void main(String[] args) {
        //反射
        Class<infoImpl> infoClass = infoImpl.class;
        Method[] declaredMethods = infoClass.getDeclaredMethods();
        //有两个类型
        //info:Integer
        //info:Object
        for (Method declaredMethod : declaredMethods) {
            System.out.println(declaredMethod.getName()  +":"+ declaredMethod.getReturnType().getSimpleName() );
        }
    }
}
